import Mock from "..";

export const getInfo = (options) => {
    // console.log(options)
    // console.log("kk")
    // return {
    //     name: "lr"
    // }
// 这个就是模板

    const Random = Mock.Random;
    let chartDatasskc = [];
    var arry = ["是", "否"];

    for (let i = 0; i < 10; i++) {

        let newArticleObject = {
            "name": Random.cname(),//随机生成中文名字
            'qq': /^\d{8,10}$/,
            "mtime": Random.datetime(),//随机生成日期时间

            "stars": Random.natural(0, 5),//随机生成1-5的数字
            "add": Random.region(),
            'name|1': arry

        }
    chartDatasskc.push(newArticleObject);
    return Mock.mock(chartDatasskc);
    }
}
